package com.aurora.color;

import android.content.Intent;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import java.util.Timer;
import java.util.TimerTask;


public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        //自动跳转主界面
        new Timer().schedule(new TimerTask() {
            @Override
            //定时结束后执行的事件
            public void run() {
                Intent toHome = new Intent();
                toHome.setClass(MainActivity.this, HomePage.class);
                startActivity(toHome);
                //结束当前界面
                finish();
            }
        }, 600);


    }

}